From d83eb7f21e37956c1674481b56f0c9181d493304 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Tue, 17 Aug 2010 15:23:36 +0100 Subject: [PATCH] xend: remove non-ASCII characters. Signed-off-by: Christoph Egger Signed-off-by: Stefano Stabellini committer: Stefano Stabellini --- tools/python/xen/xend/XendConfig.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py index cff12e89c3..3ec79d4a67 100644 --- a/tools/python/xen/xend/XendConfig.py +++ b/tools/python/xen/xend/XendConfig.py @@ -686,12 +686,12 @@ class XendConfig(dict): # Convert scheduling parameters to vcpus_params if 'vcpus_params' not in cfg: cfg['vcpus_params'] = {} -        if not cfg["vcpus_params"].has_key("weight"): -            cfg["vcpus_params"]["weight"] = \ -                int(sxp.child_value(sxp_cfg, "cpu_weight", 256)) -        if not cfg["vcpus_params"].has_key("cap"): -            cfg["vcpus_params"]["cap"] = \ -                int(sxp.child_value(sxp_cfg, "cpu_cap", 0)) + if not cfg["vcpus_params"].has_key("weight"): + cfg["vcpus_params"]["weight"] = \ + int(sxp.child_value(sxp_cfg, "cpu_weight", 256)) + if not cfg["vcpus_params"].has_key("cap"): + cfg["vcpus_params"]["cap"] = \ + int(sxp.child_value(sxp_cfg, "cpu_cap", 0)) # Only extract options we know about. extract_keys = LEGACY_UNSUPPORTED_BY_XENAPI_CFG + \ -- 2.30.2